package com.shawn.dubbo.api;

import com.shawn.model.entity.User;
import com.shawn.model.entity.UserInfo;
import com.shawn.model.vo.DistributionVo;

public interface UserApi {
    /**
     * 通过电话查找用户
     * @param phoneNum 电话号码
     * @return {@link User}
     */
    User findByPhone(String phoneNum);

    Long save(User user);

    void update(User user);

    User findById(Long userId);

    User getUserByHXId(String hxId);

    Integer getUserNum();

}
